<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'} 

<div class="container">
	
    <div class="main">
    	
        
        <style type="text/css">
			.title{
				font-size:18px; text-align:center; font-weight:bold; line-height:40px; 
			}
			.attr{ 
				font-size:13px; line-height:30px; text-align:center;
			}
			.attr font{
				color:#ddd;
			}
			.desc{
				padding:10px; margin:10px 0 20px 0; font-family:楷体_GB2312;
			}
			.content{
				color: #000000;
				font-family: "宋体";
				font-size: 14px;
				letter-spacing: 0.1em;
				line-height: 180%;
				word-spacing: 0.1em;
			}
			.content p{
				text-indent:24px;
			}
			.content a{ background:url(misc/external.png) no-repeat right center !important; padding:0 10px 0 0px; margin:0 5px; text-decoration:underline;}
			.content a:hover{ color:blue;}
		</style>
        
        
        <ul class="breadcrumb">
              <li><a href="#">首页</a> <span class="divider">/</span></li>
              <li><a href="#">栏目</a> <span class="divider">/</span></li>
              <li><a href="#">{$CATEGORY[$catid][catname]}</a> <span class="divider">/</span></li>
              <li class="active">详细内容</li>
            </ul>
            
            
        <div class="mod">
     
            <div class="body">
            	
                <p class="title">{$title}</p>
                <p class="attr">
                    <span>{date('Y-m-d',$updatetime)}</span> <font>┊</font>
                     作者：{if $author}{$author}{else}{$userid}{/if} <font>┊</font>
                     来源：{if $copyfrom}{$copyfrom}{else} {SITE_URL} {/if} <font>┊</font>
                     浏览次数：<span id="hits">0</span> <font>┊</font> 
                </p>
                
                

<div class="alert alert-danger">
	<h4 class="alert-heading">{$SETTING[sitename]}邀请您免费注册成为会员</h4>
	系统发现您没有登录，麻烦动动你的手指头马上注册成为{$SETTING[sitename]}的会员吧，结交更多好友，享用更多功能，让你轻松玩转{$SETTING[sitename]}，而这一切都是免费的。<br/>
    <a href="{url("?module=member&action=register")}" class="button button-danger"><i class="icon-user icon-white"></i>立即注册</a> <a class="button" href="{url("?module=member&action=login")}">登录</a>
</div>

                <p class="desc">{$description}</p>
                
                    <div style="text-align:center">{if $thumb}<img style="margin:0 auto" src="{$thumb}" class="thumbnail"/>{/if}
                    由{$SETTING[sitename]}配图</div>
                    <br/>
                
                    {if $userid == $_userid} 
                    	<a href="{url("?module=content&action=edit&contentid=$contentid")}" class="button"><i class="icon-edit"></i>修改</a>
                    	<a href="{url("?module=content&action=delete&contentid=$contentid")}" class="button button-danger"><i class="icon-remove icon-white"></i>删除</a>
                    {/if}
                    
                    
        		<div class="content">
                    {$content}<br/>
                    <br/>
                    转载请注明来源：<a href='{url($url)}'>{url($url)}</a>
                    声明：• 凡注明为其他媒体来源的信息，均为转载自其他媒体，转载并不代表本网赞同其观点，也不代表本网对其真实性负责。您若对该稿件内容有任何疑问或质疑，请即与我们联系，本网将迅速给您回应并做处理。
                </div>
                <br/>
                {if $keywords}
                    <div><strong>关键词：</strong>{$keywords}</div>
                {/if}
                
            </div>
        </div> 
        
        
        <div class="mod">
        	<div class="head">相关</div>
            <div class="body">
            	<p>上一篇：<a href="{url($prev[url])}">{$prev[title]}</a><br/>下一篇：<a href="{url($next[url])}">{$next[title]}</a></p>
            </div>
        </div>
        
        <!--<style>
			.ad{
				height:auto; overflow:hidden; clear:both; margin:-20px 0 10px 0;
			}
			.ad .col{
				width:300px; height:250px; float:left; display:inline; background:#eee; margin-right:10px; line-height:250px; text-align:center;
			}
			
		</style>
        <div class="ad">
        	<div class="col">
            	广而告之
            </div>
        	<div class="col">
            	广而告之
            </div>
        </div>--> 
        
        
        <div class="mod">
        	<div class="head">相关阅读&nbsp;<small>articles</small></div>
            <ul class="body">
              {get sql="select * from table_content where `catid` = $catid and status = 99 order by listorder desc,hits desc" rows="10"}
                <li><a href="{url($r[url])}">{$r[title]}</a>&nbsp;&nbsp;<!--{str_cut($r[description],30)}--></li>
              {/get}
              </ul>
        </div>
        
         
        {php list($mod, $field, $value) = array('group_topic', 'topicid', $topicid);}
        {template 'load.html','comment'}
         
      
      
      	
        <div class="mod">
        	<div class="head">工具</div>
            <div class="body">
            	{if isset($MODULE[error_report])}<a href="javascript:$('#errors').submit();">[错误报告]</a>{/if} 
                {if isset($MODULE[mail])}<a href="javascript:$('#sendmail').submit();">[推荐]</a>{/if} 
                <a href="{url("?module=member&action=collect_add&contentid=$contentid")}">[收藏]</a>
                <a href="javascript:window.print();">[打印]</a> <a href="javascript:window.close();">[关闭]</a> 
                <a href="{SITE_URL}{url($url)}#top">[返回顶部]</a> 
            </div>
        </div>
 
    
    </div>
    
    
    <script type="text/javascript">
		/*$(function(){
			$(window).scroll(function(){ 
				if($(window).scrollTop()<165){
					$('.aside').removeClass('fixed');
				}
				
				// 不给ie6效果
				if($(window).scrollTop()>165&&!($.browser.msie&&$.browser.version=='6.0')){
					$('.aside').addClass('fixed');
				}
			});
		})*/
	</script>
    
    <style type="text/css">
		/* 解决固定层在IE6下闪的问题 */
		*html{
			background-image:url(about:blank);
			background-attachment:fixed;
		}
		.fixed{
			position:absolute; 
			margin-left:10px;
			position:fixed; 
			clip:rect(0 100% 100% 0);
			_position:absolute;
			
			/* 底部 */
			top:0px;
		}
	</style>
    <div class="aside">
    	
        
    
        <div class="mod">
            <div class="body">
            	
                <div class="well">
                    <a href="{url("?module=member")}"><img class="thumbnail" src="{avatar($_userid)}"/></a>
                    <br/>
                    <p><a class="button button-warning" href="./index.php?module=space&file=fans&action=add&userid={$userid}"><i class="icon-plus icon-white"></i>加关注</a> 
                	<a class="button" href="{url("?module=message&action=send&userid=$userid")}"><i class="icon-envelope"></i>写短消息</a></p>
                </div>
            </div>
        </div>
        
        
        <div class="mod">
        	<div class="head">相关阅读&nbsp;<small>articles</small></div>
            <ul class="body">
              {get sql="select * from table_content where `catid` = $catid and status = 99 order by listorder desc,hits desc" rows="10"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></span></li>
              {/get}
              </ul>
        </div>
          
        
        <div class="mod">
        	<div class="head">热门阅读&nbsp;<small>hot articles</small></div>
            <ul class="body">
              {get sql="select title,url,hits from table_content where status = 99 order by hits desc" rows="10"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li>
              {/get}
              </ul>
        </div>
          
          
        <style type="text/css">
			.side .rss{
				margin:20px 0 10px 10px;
			}
			.side .rss img{
				float:left; display:inline; margin:0 5px 5px 0;
			}
		</style>
        <div class="rss">
        	<img src="skin/images/rss.png"/>
        	<img src="skin/images/zx.png"/>
        	<img src="skin/images/xg.png"/>
        	<img src="skin/images/qq.png"/>
        	<img src="skin/images/google.png"/>
        </div>
        
        
        <div class="mod">
        	<div class="head">版权声明</div>
            <div class="body">
            	除特别声明外，《{$SETTING[sitename]}》站内的所有内容皆为原创或者为原创，且基于创作共享的<a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" rel="nofollow">署名-非商业使用-相同方 式分享 2.5</a> 协议发布。转载时必须以链接形式注明作者和原始出处及本声明。 
            </div>
        </div>
       
    </div>
</div>


<script language="javascript" src="?module={$module}&file={$file}&action=count&contentid={$contentid}"></script>
{template 'footer.html'}